home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 2868 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.3 KB  |  95 lines

  1. Path: newsfeed.internetmci.com!xmission!news
  2. From: jsburger@xmission.com (John S. Burger)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: PPP1_45 problems?
  5. Date: 23 Mar 96 14:51:45 +0500
  6. Organization: XMission Internet (801 539 0900)
  7. Message-ID: <2993.6656T891T2284@xmission.com>
  8. References: <19960319.7D4BAA0.8F77@ccubb.com> <66095637@jojo.IN-Berlin.DE>
  9. NNTP-Posting-Host: slc34.xmission.com
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. On or about 21-Mar-96 02:28:25 Bernhard Graf typed the following words about
  14. "Re: PPP1_45 problems?".  My reply is thus...
  15.  
  16.  Hi Bernhard,
  17.  
  18.  
  19.  BG> In article <19960319.7D4BAA0.8F77@ccubb.com>: "Re: PPP1_45 problems?"
  20.  BG> David Evans <devans@ccubb.com> wrote:
  21.  
  22. DE>> Uh, why not let ppp do the dialing?  (Assuming you have a registered
  23. DE>> version) It works flawlessly!
  24.  
  25.  BG> It still handles only one number. (Please correct me, when I'm wrong).
  26.  
  27.  
  28.  BG> Ciao
  29.  BG> --
  30.  BG> Bernhard Graf
  31.  BG> mail graf@jojo.IN-Berlin.DE
  32.  BG>      graffbgd@sp.zrz.TU-Berlin.DE
  33.  
  34. You don't need the registered version to have dialing however registration is
  35. well worth the price.
  36.  
  37.  
  38. One way to get multiple numbers if you are using the online command to start
  39. the ppp.device is to make a pppx.config file for each number and call a
  40. different dial script for each one. The only difference in the dial scripts
  41. would be the phone number. The online command gives a return code of 10 if the
  42. command fails so if a timeout occurs because of a no carrier you get a RC of
  43. 10. So just change your startnet script to watch for RC=10 and you can call
  44. each config in order. Like this....
  45.  
  46. Say you have 3 phone numbers, you create 3 ppp config files (ppp0.config,
  47. ppp1.config, ppp2.config). Each one calls a different dial file. The only
  48. difference in the dial files is the phone number. You will have to add a line
  49. in your AmiTCP:db/interfaces file for each ppp config.
  50.  
  51. ppp0 DEV=DEVS:Networks/ppp.device UNIT=0 IPTYPE=33 NOARP P2P
  52. ppp1 DEV=DEVS:Networks/ppp.device UNIT=1 IPTYPE=33 NOARP P2P
  53. ppp2 DEV=DEVS:Networks/ppp.device UNIT=2 IPTYPE=33 NOARP P2P
  54.  
  55. Then where ever the online command is in your startnet script make a loop
  56. watching for a RC of 10 and call the next online command.
  57.  
  58. -------------------------CUT-------------------------
  59.  
  60.  
  61. MultiDial:
  62.  
  63. AmiTCP:bin/online >NIL: devs:Networks/ppp.device 0
  64. if RC=10 then do
  65.   AmiTCP:bin/online >NIL: devs:Networks/ppp.device 1
  66.   else
  67.     if RC=10 then do
  68.        AmiTCP:bin/online >NIL: devs:Networks/ppp.device 2
  69.           if RC=10 then do
  70.           call(MultiDial:)
  71.           end
  72.      end
  73. end
  74.  
  75. -------------------------CUT-------------------------
  76.  
  77.  
  78. Do this in arexx and you should be able to dial any number of phone numbers.
  79. You may have to add a "Wait x" command before each online command but this
  80. should work although I havn't tried it.
  81.  
  82. --
  83.       //        -= John =-    jsburger@xmission.com    BIX: jburger
  84.     \X/                                                                 Via
  85.                              Amateur Radio   KB0ES                       T
  86.  Amiga  2000                                                             H
  87.  A2630 A2632            John S. Burger       Hooper, UT                  O
  88. 2+14megs  RAM                                                            R
  89.   850meg HD             This message was composed on...                2.23▀
  90.  Iomega  ZIP                  23-Mar-96 14:18:21 MST
  91. --
  92.  
  93. The trick in overcoming temptation, is to play dead.
  94.  
  95.